package com.generate.tools.service;

public class MasterEngineer {
	
	private IConnection conn;
	
	private IMaster master;
	
	public void generateEntity(String masterType){
		MasterFactory masterFactory = new MasterFactory();
		master = masterFactory.factory(masterType);
		ConnectionFactory connFactory = new ConnectionFactory();
		conn = connFactory.factory(masterType);
		master.generate(conn.getConn());
	}
}
